/*
 * @Description: 其他说明
 * @Author: iamsmiling
 * @Date: 2021-06-06 23:31:04
 * @LastEditTime: 2021-06-13 17:27:10
 */
import 'dart:ui';

import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class SourceExtraInfoCard extends StatelessWidget {
  ///是否显示警告
  final bool warning;
  const SourceExtraInfoCard({Key? key, this.warning = false}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            margin: EdgeInsets.only(bottom: R.dimen.dp12),
            child: Text(
              "其它说明",
              style: TextStyle(
                  fontSize: R.dimen.sp18,
                  color: R.color.ff333333,
                  fontWeight: FontWeight.w600),
            ),
          ),
          Container(
            margin: EdgeInsets.only(bottom: R.dimen.dp30),
            child: Text(
              "诚心找渠道商，有意请私聊",
              style: TextStyle(fontSize: R.dimen.sp13, color: R.color.ff555555),
            ),
          ),
          Visibility(
            visible: warning,
            child: Container(
              alignment: Alignment.center,
              child: Text(
                "合作过程中如有涉及资金往来请谨慎操作，如造成损失平台不承担任何责任",
                style:
                    TextStyle(fontSize: R.dimen.sp10, color: R.color.fffb8f03),
              ),
            ),
          )
        ],
      ),
    );
  }
}
